// FaultHandler.java
package com.smartfarm.chain;

public class FaultHandler extends SafetyHandler {
    public void handleRequest(String request) {
        if (request.contains("故障")) {
            System.out.println("故障处理: 发送维修警报");
        } else if (next != null) {
            next.handleRequest(request);
        }
    }
}